<%-- Created by IntelliJ IDEA. --%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>注册</title>
  <link rel="stylesheet" href="style/register.css">
</head>

<body>
<div class="container">
  <div class="register">
    <p>创建通行证</p>
    <p>创建账户，开启你的游戏体验。</p>
      <%
          String errorInfo = (String)request.getAttribute("loginError");// 获取错误属性
          if(errorInfo != null) {
      %>
            <script type="text/javascript" language="javascript">
                alert("<%=errorInfo%>");// 弹出错误信息
            </script>
      <%
          }
      %>
    <form action="register" method="POST" class="register-form">
        <input type="text" name="username" placeholder="用户名"><span class="check-uname">3-7个汉字字符</span>
        <div class="check-msg"></div>
        <input type="password" name="userpwd" value="" placeholder="密码" class="check"><span>6-15位数字、字母、_</span>
        <input type="password" name="checkpwd" value="" placeholder="确认密码" class="check"><span class="check-pwd">两次输入的密码不一致！</span>
        <input type="text" value="" name="useremail" placeholder="电子邮箱"><span class="check-email">无效的电子邮箱格式！</span>
        <input type="text" value="" name="userphone" placeholder="手机号"><span class="check-phone">无效的手机格式！</span>
        <button class="register-btn" type="submit" >提交注册信息</button>
    </form>
  </div>
</div>
<div class="footer">
  <div class="copy-box">2019&copy;dongyixin</div>
</div>
</body>
<script src="js/register.js"></script>
</html>